package code.part08_Net.server;


import java.net.ServerSocket;
import java.net.Socket;

/**
 * @author: ZJT
 * @Time: 2021/8/1
 * @Description:
 */
public class LoginServer2 {

    public static void main(String[] args) throws Exception {

        ServerSocket serverSocket = new ServerSocket(10000);
        while (true) {
            Socket socket = serverSocket.accept();
            LoginThread loginThread = new LoginThread(socket);
            new Thread(loginThread).start();
        }
    }
}
